<template>
	<view class="rich-page">
		<bsNavBar :title='name'></bsNavBar>
		<u-parse :html="content"></u-parse>
		<view class="mt-40 mb-40" v-if="showTips">
			<u-alert-tips :show-icon='true' type="warning" :description="description"></u-alert-tips>
		</view>
	</view>
</template>

<script>
	export default {
		// props: {
		// 	content: {
		// 		type: String,
		// 		default: ''
		// 	}
		// },
		async onLoad(e) {
			if (e.awardId) {
				let res = await this.$u.api.selectOneAward({
					awardId: e.awardId
				})
				console.log(res[0])
				this.name = res[0].name
				this.content = res[0].awardContent
			}
		},
		data() {
			return {
				showTips:true,
				description: '注：以上奖项如需申报，请使用电脑访问官方网站提交申请  官网地址：www.cbda1984.com ',
				content: '',
				name: '详情'
			};
		}
	}
</script>

<style lang="scss">
	.rich-page {
		padding: 30rpx;
	}
</style>
